import request from '../../utils/request'


//获取列表
export const getList = (params) => {
    return request({
        url: '/website/manger/list',
        method: 'get',
        params
    })
}

//新增
export const addfnList = (data) => {
    return request({
        url: '/website/manger',
        method: 'post',
        data
    })
}

//获取单个详情
export const detailfnList = (id) => {
    return request({
        url: `/website/manger/${id}`
    })
}

//修改
export const editfnList = (data) => {
    return request({
        url: `/website/manger`,
        method: 'put',
        data
    })
}

//删除
export const deletefnList = (id) => {
    return request({
        url: `/website/manger/${id}`,
        method: 'delete'
    })
}

//pc获取列表
export const GetPcfnList = (params) => {
    return request({
        url: `/other/website/manger/list`,
        method: 'get',
        params
    })
}